<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('api', function () {
    Route::get('index', 'api.index/index');
    // 其他 api 模块下的路由规则
    Route::post('user/login','api.user/login'); //登陆&&注册
    Route::get('user/get_user_info','api.user/get_user_info')->middleware('auth'); //获取用户信息
    Route::get('test/start','api.test/start');
//    Route::get('user/:action', 'api.user/:action')->middleware('auth');
//    Route::post('user/:action', 'api.user/:action')->middleware('auth');
});

//动态类方法
Route::group('admin', function () {
    Route::get('appid/:action', 'admin.AppidService/:action');
});
